import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listAuitvo(query) {
  return request({
    url: '/system/auitvo/list',
    method: 'get',
    params: query
  })
}

// 查询已面试
export function selectList(query) {
  return request({
    url: '/system/auitvo/selectByFirst',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getAuitvo(id) {
  return request({
    url: '/system/auitvo/' + id,
    method: 'get'
  })
}

// 查询【请填写功能名称】详细
export function findByReId(id) {
  return request({
    url: '/system/auitvo/findByReId/' + id,
    method: 'get'
  })
}
// 新增【请填写功能名称】
export function addAuitvo(data) {
  return request({
    url: '/system/auitvo',
    method: 'post',
    data: data
  })
}


// offer 修改
export function updates(data) {
  return request({
    url: '/system/auitvo/offerU',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateAuitvo(ids,is_first,resumeId,expectedDate,interviewStatus) {
  return request({
    url: '/system/auitvo/edit/'+ids+'/'+is_first+'/'+resumeId + '?expectedDate='+expectedDate+'&interviewStatus='+interviewStatus,
    method: 'get'
  })
}


// 通过面试
export function updateStatus(id,interviewStatus,status) {
  return request({
    url: '/system/auitvo/updateStatus/'+id+'/'+interviewStatus+'/'+status,
    method: 'get'
  })
}

// 删除【请填写功能名称】
export function delAuitvo(id) {
  return request({
    url: '/system/auitvo/' + id,
    method: 'delete'
  })

}



// 批量淘汰
export function updateIsFirst(ids,resumeIds,ofeliminate,soeliminate) {
  debugger;
  return request({
    url: '/system/auitvo/updateIsFirst/' + ids+'/'+resumeIds+'/'+ofeliminate+'/'+soeliminate,
    method: 'get'
  })
}

export function download(imgPath) {
  return request({
    url: '/system/files/download/' + imgPath,
    method: 'get'
  })
}


// 统计数量
export function statisticsNum() {
  return request({
    url: 'system/auitvo/statisticsNum',
    method: 'get'

  })
}

